﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace ERPStore.CRM.Models
{
	[DataContract]
	public class Ticket
	{
		[DataMember]
		public int Id { get; set; }

		[DataMember]
		public string Code { get; set; }

		[DataMember]
		public string PublicCode { get; set; }

		[DataMember]
		public DateTime CreationDate { get; set; }

		[DataMember]
		public ERPStore.Models.User	CreatedBy { get; set; }

		[DataMember]
		public TicketType Type { get; set; }

		[DataMember]
		public string Title { get; set; }

		[DataMember]
		public string Message { get; set; }

		[DataMember]
		public DateTime? DueDate { get; set; }

		[DataMember]
		public TicketPriority Priority { get; set; }

		[DataMember]
		public Direction Direction { get; set; }

		[DataMember]
		public Folder Folder { get; set; }

		[DataMember]
		public Ticket Parent { get; set; }
	}
}
